package com.xzcf.entity;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private String userName;
	private String uesrPsw;
	private String userEmail;
	private String userSexy;
	private String userPhone;
	private String userAddress;
	private Timestamp userLoginTime;
	private Timestamp userJoinTime;
	private Integer userRoleType;
	private Integer userPoint;
	private Set itemsForDonorName = new HashSet(0);
	private Set itemsForOwnerName = new HashSet(0);
	private Set auctionRecords = new HashSet(0);
	private String userRealname;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String userName, String uesrPsw) {
		this.userName = userName;
		this.uesrPsw = uesrPsw;
	}

	/** full constructor */
	public User(String userName, String uesrPsw, String userEmail,
			String userSexy, String userPhone, String userAddress,String userRealname) {
		this.userName = userName;
		this.uesrPsw = uesrPsw;
		this.userEmail = userEmail;
		this.userSexy = userSexy;
		this.userPhone = userPhone;
		this.userAddress = userAddress;
		this.userRealname = userRealname;
	}
	public User(User user){
		this.userName = user.userName;
		this.uesrPsw = user.uesrPsw;
		this.userEmail = user.userEmail;
		this.userSexy = user.userSexy;
		this.userPhone = user.userPhone;
		this.userAddress = user.userAddress;
		this.userLoginTime = user.userLoginTime;
		this.userJoinTime = user.userJoinTime;
		this.userRoleType = user.userRoleType;
		this.userPoint = user.userPoint;
		this.itemsForDonorName = user.itemsForDonorName;
		this.itemsForOwnerName = user.itemsForOwnerName;
		this.auctionRecords = user.auctionRecords;
		this.userRealname = user.userRealname;
	}
	public User(String userName, String uesrPsw, String userEmail,
			String userSexy, String userPhone, String userAddress,
			Timestamp userLoginTime, Timestamp userJoinTime,
			Integer userRoleType, Integer userPoint, Set itemsForDonorName,
			Set itemsForOwnerName, Set auctionRecords, String userRealname) {
		this.userName = userName;
		this.uesrPsw = uesrPsw;
		this.userEmail = userEmail;
		this.userSexy = userSexy;
		this.userPhone = userPhone;
		this.userAddress = userAddress;
		this.userLoginTime = userLoginTime;
		this.userJoinTime = userJoinTime;
		this.userRoleType = userRoleType;
		this.userPoint = userPoint;
		this.itemsForDonorName = itemsForDonorName;
		this.itemsForOwnerName = itemsForOwnerName;
		this.auctionRecords = auctionRecords;
		this.userRealname = userRealname;
	}

	// Property accessors

	public String getUserRealname() {
		return this.userRealname;
	}

	public void setUserRealname(String userRealname) {
		this.userRealname = userRealname;
	}
	
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUesrPsw() {
		return this.uesrPsw;
	}

	public void setUesrPsw(String uesrPsw) {
		this.uesrPsw = uesrPsw;
	}

	public String getUserEmail() {
		return this.userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public String getUserSexy() {
		return userSexy;
	}

	public void setUserSexy(String userSexy) {
		this.userSexy = userSexy;
	}

	public String getUserPhone() {
		return this.userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getUserAddress() {
		return this.userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}

	public Timestamp getUserLoginTime() {
		return this.userLoginTime;
	}

	public void setUserLoginTime(Timestamp userLoginTime) {
		this.userLoginTime = userLoginTime;
	}

	public Timestamp getUserJoinTime() {
		return this.userJoinTime;
	}

	public void setUserJoinTime(Timestamp userJoinTime) {
		this.userJoinTime = userJoinTime;
	}

	public Integer getUserRoleType() {
		return this.userRoleType;
	}

	public void setUserRoleType(Integer userRoleType) {
		this.userRoleType = userRoleType;
	}

	public Integer getUserPoint() {
		return this.userPoint;
	}

	public void setUserPoint(Integer userPoint) {
		this.userPoint = userPoint;
	}

	public Set getItemsForDonorName() {
		return this.itemsForDonorName;
	}

	public void setItemsForDonorName(Set itemsForDonorName) {
		this.itemsForDonorName = itemsForDonorName;
	}

	public Set getItemsForOwnerName() {
		return this.itemsForOwnerName;
	}

	public void setItemsForOwnerName(Set itemsForOwnerName) {
		this.itemsForOwnerName = itemsForOwnerName;
	}

	public Set getAuctionRecords() {
		return this.auctionRecords;
	}

	public void setAuctionRecords(Set auctionRecords) {
		this.auctionRecords = auctionRecords;
	}

}